<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.Date"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Edit Access</title>
<link rel="stylesheet" type="text/css" href="common/css/register.css">
<!-- <script>
alert("${sessionScope.accessCreateTimeLast }");
</script> -->
</head>
<body>
	<div class="htmleaf-container">
		<div class="wrapper">
			<div class="container">
				<h1>Welcome</h1>

				<form class="form" id="regist" action="updateAccess.action"
					method="POST">

					<div>
						<label class="usertitle">Access&nbsp;&nbsp;ID:${editAccess.accessId}</label>
						<input type="hidden" name="accessId"
							value="${editAccess.accessId}" id="accessId" readonly="readonly" />
					</div>

					<div class="list">
						<label class="usertitle">Access&nbsp;&nbsp;Name:</label> <input
							type="text" name="accessName" value="${editAccess.accessName}"
							id="accessName" class="userinput"
							placeholder="Please input AccessName" validate="require"
							data-validate-text="This field is required." />
					</div>

					<div class="list">
						<label class="input-title">Access&nbsp;&nbsp;ParentId:</label> <input
							type="number" name="accessParentId"
							value="${editAccess.accessParentId}" id="accessParentId"
							class="userinput" placeholder="Please input accessParentId"
							data-validate-text="Please enter a valid number." />
					</div>

					<div class="list">
						<label class="input-title">Model&nbsp;&nbsp;Id:</label> <input
							type="number" name="modelId" value="${editAccess.modelId}"
							id="ModelId" class="userinput" placeholder="Please input ModelId"
							data-validate-text="Please enter a valid number." />
					</div>

					<div class="list">
						<label class="input-title">Acesss&nbsp;&nbsp;DeleteFlag:</label> <input
							type="text" name="acesssDeleteFlag"
							value="${editAccess.acesssDeleteFlag}" id="acesssDeleteFlag"
							class="userinput" placeholder="Please input acesssDeleteFlag" />
					</div>

					<div class="list">
						<label class="input-title">accessCreater:</label> <input
							type="text" name="accessCreater" readonly="readonly"
							value="${editAccess.accessCreater}" id="accessCreater"
							class="userinput" />
					</div>

					<div class="list">
						<label class="input-title">accessCreateTime:</label> <input
							type="text" name="accessCreateTime" readonly="readonly"
							value="${sessionScope.accessCreateTimeLast }"
							id="accessCreateTime" class="userinput" />
					</div>

					<div class="list">
						<label class="input-title">accessModifier:</label> <input
							type="text" name="accessModifier"
							value="${editAccess.accessModifier }" id="accessModifier"
							class="userinput" placeholder="Please input accessModifier"
							required="true" data-validate-text="This field is required." />
					</div>

					<div class="list">

						<label class="input-title">accessModifyTime:</label> <input
							type="text" name="accessModifyTime"
							value="<%out.print(new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
					.format(new Date()));%>"
							class="userinput" validate="require"
							data-validate-text="This field is required." />

					</div>

					<button type="submit" class="btn1" id="submit1">Submit</button>
					<button type="button" class="btn2" id="back"
						onclick="window.location='searchAccessList.action'">Return</button>

				</form>
			</div>
		</div>
	</div>
</body>
</html>
